<!DOCTYPE html>
<html lang="en">
<head>
    <base href="${request.contextPath}/"/>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-1.11.1.min.js"></script>
    <link rel="stylesheet" href="css/nybk_liebiao.css">
    <link rel="stylesheet" href="lib/jqueryPagination/css/jquery.pagination.css"/>
    <link rel="stylesheet" href="css/fenye.css">
    <#setting date_format="yyyy-MM-dd">
</head>
<body>
<div class="content_all">
    <div class="content_title">
        <p>${type}</p>
        <div class="content_title_ss">
            <input type="hidden" name="type" id="type" value="${type!''}">
            <input type="hidden" name="current" id="current" value="${current!'1'}">
            <input type="hidden" name="titleNum" id="titleNum" value="${titleNum}">
            <input class="ss_input" type="text" name="title" id="title" value="${title!''}">
            <div class="ss_button"><a href="javascript:void(0)" onclick="check('${type}')"><img
                    src="images/ss_button.png" alt=""></a>
            </div>
        </div>
    </div>
    <div class="content_table">
        <table style="border-collapse:collapse;">
            <#list nybkAll as nybk>
            <tr>
                <td>${nybk_index+1}</td>
                <td><a href="/nybk/nybkDetil.html?id=${nybk.id}">${nybk.title}</a></td>
                <td>${(nybk.createTime?date)!""}</td>
            </tr>
        </#list>
        </table>
    </div>
    <div class="content_fy">
        <div class="box">
            <div id="pagination3" class="page fl"></div>
            <div class="info fl">
            </div>
            <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
            <script src="lib/jqueryPagination/js/jquery.pagination.min.js"></script>
        </div>
    </div>
</div>
<script src="js/nybk_liebiao.js"></script>

<script>
    $(function () {
        $("#pagination3").pagination({
            currentPage: 1,
            totalPage: 16,
            isShow: true,
            count: 10,
            homePageText: "首页",
            endPageText: "尾页",
            prevPageText: "上一页",
            nextPageText: "下一页",
            callback: function (current) {
                var title = $('#title').val();
                var type = $('#type').val();
                parent.tiaozhuan(type, title, current);
            }
        });
        var current = $('#current').val()-0;
        var titleNum = $('#titleNum').val()-0;
        $("#pagination3").pagination("setPage", current, titleNum);
    });

    function check(type) {
        var title = $('#title').val();
        parent.tiaozhuan(type, title, 1);
    }
</script>
<script>
    $(function () {

        $(".content_table table tr").height($(".content_table").height()/10)
    })
</script>
</body>
</html>